<!DOCTYPE html>
<html>




	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			div {
				width: 1000px;
				height: 1000px;
				text-align: center;
				border: 2px solid;
			}
		</style>
	</head>




	<body>
		<div>
			<canvas id="Mycanvas" width="1000px" height="1000px"></canvas>
			<script type="text/javascript">
				var canvas = document.getElementById("Mycanvas");
				var ctx = canvas.getContext("2d");
				var rot = 0;
				var rot1 = 45;
				var rot2 = 90;
				var rot3 = -15;
				setInterval(function() {
					ctx.clearRect(0,0,2000,2000);
					var x = Math.cos(rot / 180 * Math.PI) * 100;
					var y = Math.sin(rot / 180 * Math.PI) * 100;
					
					ctx.beginPath();
					ctx.fillStyle = "yellow";
					ctx.fillRect(0, 0, 2000,2000);
					ctx.arc(250, 250, 200, (rot / 180) * Math.PI, (1 + rot / 180) * Math.PI, true);
					ctx.fillStyle = "black";
					ctx.fill();
					ctx.beginPath();
					ctx.arc(250, 250, 200, (rot / 180) * Math.PI, (1 + rot / 180) * Math.PI);
					ctx.fillStyle = "white";
					ctx.fill();




					ctx.beginPath();
					ctx.arc(250 - x, 250 - y, 100, 0, 2 * Math.PI);
					ctx.fillStyle = "black";
					ctx.fill();
					ctx.beginPath();
					ctx.arc(250 + x, 250 + y, 100, 0, 2 * Math.PI);
					ctx.fillStyle = "white";
					ctx.fill();




					ctx.beginPath();
					ctx.arc(250 - x, 250 - y, 30, 0, 2 * Math.PI);
					ctx.fillStyle = "white";
					ctx.fill();
					ctx.beginPath();
					ctx.arc(250 + x, 250 + y, 30, 0, 2 * Math.PI);
					ctx.fillStyle = "black";
					ctx.closePath();
					ctx.fill();
					rot = rot + 5;
//				}, 100)
//				var canvas = document.getElementById("Mycanvas");
//				var ctx = canvas.getContext("2d");
				
//				setInterval(function() {
					
					var x = Math.cos(rot1 / 180 * Math.PI) * 100;
					var y = Math.sin(rot1 / 180 * Math.PI) * 100;					
					ctx.beginPath();
					ctx.arc(650, 250, 200, (rot1 / 180) * Math.PI, (1 + rot1 / 180) * Math.PI, true);
					ctx.fillStyle = "black";
					ctx.fill();
					ctx.beginPath();
					ctx.arc(650, 250, 200, (rot1 / 180) * Math.PI, (1 + rot1 / 180) * Math.PI);
					ctx.fillStyle = "white";
					ctx.fill();




					ctx.beginPath();
					ctx.arc(650 - x, 250 - y, 100, 0, 2 * Math.PI);
					ctx.fillStyle = "black";
					ctx.fill();
					ctx.beginPath();
					ctx.arc(650 + x, 250 + y, 100, 0, 2 * Math.PI);
					ctx.fillStyle = "white";
					ctx.fill();




					ctx.beginPath();
					ctx.arc(650 - x, 250 - y, 30, 0, 2 * Math.PI);
					ctx.fillStyle = "white";
					ctx.fill();
					ctx.beginPath();
					ctx.arc(650 + x, 250 + y, 30, 0, 2 * Math.PI);
					ctx.fillStyle = "black";
					ctx.fill();
					rot1 = rot1 + 20;
//				}, 100)
				
				
//				var canvas = document.getElementById("Mycanvas");
//				var ctx = canvas.getContext("2d");
				
//				setInterval(function() {
					var x = Math.cos(rot2 / 180 * Math.PI) * 100;
					var y = Math.sin(rot2 / 180 * Math.PI) * 100;					
					ctx.beginPath();
					ctx.arc(250, 650, 200, (rot2 / 180) * Math.PI, (1 + rot2 / 180) * Math.PI, true);
					ctx.fillStyle = "black";
					ctx.fill();
					ctx.beginPath();
					ctx.arc(250, 650, 200, (rot2 / 180) * Math.PI, (1 + rot2 / 180) * Math.PI);
					ctx.fillStyle = "white";
					ctx.fill();




					ctx.beginPath();
					ctx.arc(250 - x, 650 - y, 100, 0, 2 * Math.PI);
					ctx.fillStyle = "black";
					ctx.fill();
					ctx.beginPath();
					ctx.arc(250 + x, 650 + y, 100, 0, 2 * Math.PI);
					ctx.fillStyle = "white";
					ctx.fill();




					ctx.beginPath();
					ctx.arc(250 - x, 650 - y, 30, 0, 2 * Math.PI);
					ctx.fillStyle = "white";
					ctx.fill();
					ctx.beginPath();
					ctx.arc(250 + x, 650 + y, 30, 0, 2 * Math.PI);
					ctx.fillStyle = "black";
					ctx.fill();
					rot2 = rot2 + 10;
//				}, 100)
//				var canvas = document.getElementById("Mycanvas");
//				var ctx = canvas.getContext("2d");
				
//				setInterval(function() {
					var x = Math.cos(rot3 / 180 * Math.PI) * 100;
					var y = Math.sin(rot3 / 180 * Math.PI) * 100;					
					ctx.beginPath();
					ctx.arc(650, 650, 200, (rot3 / 180) * Math.PI, (1 + rot3 / 180) * Math.PI, true);
					ctx.fillStyle = "black";
					ctx.fill();
					ctx.beginPath();
					ctx.arc(650, 650, 200, (rot3 / 180) * Math.PI, (1 + rot3 / 180) * Math.PI);
					ctx.fillStyle = "white";
					ctx.fill();




					ctx.beginPath();
					ctx.arc(650 - x, 650 - y, 100, 0, 2 * Math.PI);
					ctx.fillStyle = "black";
					ctx.fill();
					ctx.beginPath();
					ctx.arc(650 + x, 650 + y, 100, 0, 2 * Math.PI);
					ctx.fillStyle = "white";
					ctx.fill();




					ctx.beginPath();
					ctx.arc(650 - x, 650 - y, 30, 0, 2 * Math.PI);
					ctx.fillStyle = "white";
					ctx.fill();
					ctx.beginPath();
					ctx.arc(650 + x, 650 + y, 30, 0, 2 * Math.PI);
					ctx.fillStyle = "black";
					ctx.fill();
					rot3 = rot3 + 5;
				}, 100)
			</script>
		</div>
	</body>




